var t = getApp();

Page({
    data: {
        id: ""
    },
    onLoad: function(t) {
        if (t.scene) {
            var i = decodeURIComponent(t.scene);
            if (i) {
                var n = [];
                n = i.split(",");
                for (var e = 0; e < n.length; e++) {
                    var a;
                    "mid" == (a = n[e].split("="))[0] ? this._setMid(a[1]) : "id" == a[0] && (this.setData({
                        id: a[1]
                    }), this.getData(a[1]));
                }
            }
        }
        t.id && (this.setData({
            id: t.id
        }), this.getData(t.id));
    },
    getData: function(i) {
        t._getNetWork({
            url: t.getNetAddresss("plugin.health-check.frontend.jump.miniIndex"),
            data: {
                id: this.data.id || i
            },
            success: function(i) {
                var n = i.data, e = n.result, a = n.msg, o = n.data.goods_id;
                if (0 == e) return t.tips(a);
                wx.navigateTo({
                    url: "/packageA/detail_v2/detail_v2?id=" + o
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});